**********************************************************************************************************************************************
**********************************************************************************************************************************************
*Replication code for "Naming and Shaming as a Strategy for Enforcing the Paris Agreement: The Role of Political Institutions and Public Concern"  
*by A. Dannenberg, M. Lumkowsky, E. Carlton & D. Victor (2023)
**********************************************************************************************************************************************
**********************************************************************************************************************************************
*Settings***********************************************************************

clear
version 15.1
discard
global MY_PATH_IN	"" // Enter path where data set is saved. 
global LOG_FILE 	"" // Enter path to save log-file. 
global LOG  ${LOG_FILE}MAIN_PAPER_Analysis.log
capture log close
log using "${LOG}", text replace
set more off

********************************************************************************
*Load data set******************************************************************

use "${MY_PATH_IN}01_MAIN_PAPER_DATA.dta" 

********************************************************************************
*In text************************************************************************

tab b4 
tab b8

*Figure 1***********************************************************************

*Left Panel/Left
tab b4_DUMMY if POLITY_IND_2 == 1
tab b4_DUMMY if POLITY_IND_2 == 2
tab b4_DUMMY if POLITY_IND_2 == 3

*Left Panel/Right
tab b8_DUMMY if POLITY_IND_2 == 1
tab b8_DUMMY if POLITY_IND_2 == 2
tab b8_DUMMY if POLITY_IND_2 == 3

*Middle Panel/Left
tab b4_DUMMY if inst_qual_qu == 1
tab b4_DUMMY if inst_qual_qu == 2
tab b4_DUMMY if inst_qual_qu == 3
tab b4_DUMMY if inst_qual_qu == 4

*Middle Panel/Right
tab b8_DUMMY if inst_qual_qu == 1
tab b8_DUMMY if inst_qual_qu == 2
tab b8_DUMMY if inst_qual_qu == 3
tab b8_DUMMY if inst_qual_qu == 4

*Right Panel/Left
tab b4_DUMMY if cc_concern == 1
tab b4_DUMMY if cc_concern == 2
tab b4_DUMMY if cc_concern == 3
tab b4_DUMMY if cc_concern == 4

*Right Panel/Right
tab b8_DUMMY if cc_concern == 1
tab b8_DUMMY if cc_concern == 2
tab b8_DUMMY if cc_concern == 3
tab b8_DUMMY if cc_concern == 4

********************************************************************************
*Table 2************************************************************************

*Table 2/Column 1
probit b4_DUMMY c.QUALITY_INSTITUTIONS_2019_std c.POLITY_2018_std c.CC_CONCERN_2019_3_std i.d1_10_DUMMY i.d2_10_DUMMY i.b1_DUMMY i.NEU_OECD i.NEU_NOECD i.IPCC i.g5_DUMMY_NATIONAL, vce(robust)
margins, dydx(*) atmeans post 

*Table 2/Column 2
probit b4_DUMMY c.NGO_PC_2022_std c.CC_CONCERN_2019_3_std i.d1_10_DUMMY i.d2_10_DUMMY c.IGO_MEMBERSHIPS_2014_std i.b1_DUMMY i.NEU_OECD i.NEU_NOECD c.GDP_PPP_PC_2019_std c.CO2_PC_2019_std i.IPCC i.g5_DUMMY_NATIONAL, vce(robust)
margins, dydx(*) atmeans post 

*Table 2/Column 3
probit b4_DUMMY c.QUALITY_INSTITUTIONS_2019_std c.POLITY_2018_std c.NGO_PC_2022_std c.CC_CONCERN_2019_3_std i.d1_10_DUMMY i.d2_10_DUMMY c.IGO_MEMBERSHIPS_2014_std i.b1_DUMMY i.NEU_OECD i.NEU_NOECD c.CO2_PC_2019_std i.IPCC i.g5_DUMMY_NATIONAL, vce(robust)
margins, dydx(*) atmeans post 

*Table 2/Column 4
probit b8_DUMMY c.QUALITY_INSTITUTIONS_2019_std c.POLITY_2018_std c.CC_CONCERN_2019_3_std i.d1_10_DUMMY i.d2_10_DUMMY i.b1_DUMMY i.NEU_OECD i.NEU_NOECD i.IPCC i.g5_DUMMY_NATIONAL, vce(robust)
margins, dydx(*) atmeans post 

*Table 2/Column 5
probit b8_DUMMY c.NGO_PC_2022_std c.CC_CONCERN_2019_3_std i.d1_10_DUMMY i.d2_10_DUMMY c.IGO_MEMBERSHIPS_2014_std i.b1_DUMMY i.NEU_OECD i.NEU_NOECD c.GDP_PPP_PC_2019_std c.CO2_PC_2019_std i.IPCC i.g5_DUMMY_NATIONAL, vce(robust)
margins, dydx(*) atmeans post 

*Table 2/Column 6
probit b8_DUMMY c.QUALITY_INSTITUTIONS_2019_std c.POLITY_2018_std c.NGO_PC_2022_std c.CC_CONCERN_2019_3_std i.d1_10_DUMMY i.d2_10_DUMMY c.IGO_MEMBERSHIPS_2014_std i.b1_DUMMY i.NEU_OECD i.NEU_NOECD c.CO2_PC_2019_std i.IPCC i.g5_DUMMY_NATIONAL, vce(robust)
margins, dydx(*) atmeans post 

********************************************************************************
*Figure 2***********************************************************************

tab b6_1_DUMMY 
tab b6_2_DUMMY 
tab b6_4_DUMMY 
tab b6_7_DUMMY 
tab b6_8_DUMMY 

********************************************************************************
log close
********************************************************************************
********************************************************************************



























